//
//  BaseViewController.swift
//  sinaweibo
//
//  Created by peter on 15/12/9.
//  Copyright © 2015年 peter. All rights reserved.
//

import UIKit

class BaseViewController: UITableViewController {
    var userLogin = true
    override func loadView() {
        
        userLogin ? super.loadView() : loadVisitorView()
         
      
        }
    private func loadVisitorView() {
        let v = UIView()
        v.backgroundColor = UIColor.redColor()
        view = v
        print(view)
    }
    
    override func viewDidLoad() {
        super.viewDidLoad()

      
    }


}
